package com.cxd.springcloud.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("payment")
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT")
public interface PaymentFeign {


    @GetMapping("/hystrix/sayHello/{id}")
    String sayHello(@PathVariable("id") Integer id) ;


    @GetMapping("hystrix/sayHello/timeOut/{id}")
    String sayHelloTimeOut(@PathVariable("id") Integer id) ;
}
